package com.groupbuying.cheetah.order.orderManagement;
import	java.math.BigDecimal;

import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

/**
 * class_name: OrderManagementDAO
 * package: com.groupbuying.cheetah.order.orderManagement
 * description: 服务商管理后台---财务管理---订单管理 DAO
 * creat_user: Ywxd
 * creat_date: 2019/6/27
 * creat_time: 10:48
 **/
@Component
@Mapper
public interface OrderManagementDAO {

  List<OrderManagementDO> orderManagement(Map<String, Object> map);

  int count(Map<String, Object> map);

  String sumAmount(Map<String, Object> map);

  List<Map<String, Object>> queryStore(Map<String, Object> map);

  List<Map<String, String>> queryCounter(Map<String, Object> map);

  //通过服务商，商户/收银台等顾虑信息查询收银台
  List<Map<String,String>> getStoreCheckoutCounter(Map<String,Object> params);
  //通过收银台分页查询订单
  List<Map<String,Object>> queryOrderByCounterIds(Map<String,Object> params);
  //通过订单查询支付信息
  List<Map<String,Object>> queryPayInfoByOrderIds(String[] orderIds);
  //通过订单查询商户实际分账信息
  List<Map<String,Object>> getSettleUshopSplitMaininfo(String[] orderIds);
  //通过用户ID查询用户手机号
  List<Map<String,String>> getCustomerUshop(String[] customerIds);

  List<String> getOrderIds(Map<String,Object> params);
  BigDecimal getTotalPrice(String[] orderIds);
  BigDecimal getTotalAmount(String[] orderIds);

}
